import { AppRouteRecordRaw } from '@/types/route'
import { shallowRef } from 'vue'
import Layout from '@/layout/index.vue'

export let systemRouter: AppRouteRecordRaw = {
  path: '/system',
  name: 'system',
  component: shallowRef(Layout),
  meta: {
    title: '系统管理',
    icon: 'icon-xitongguanli_icon'
  },
  children: [
    {
      path: '/system/user2',
      component: () => import(/* webpackChunkName: "system" */ '@/views/system/user2/index.vue'),
      name: 'systemUser2',
      meta: { title: '用户管理2' }
    },
    {
      path: '/system/channel',
      component: () => import(/*webpackChunkName: "system" */ '@/views/system/channel/channelManage.vue'),
      name: 'channelManage',
      meta: { title: '渠道管理' }
    }
  ]
}

export default systemRouter
